home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / a_man / cat1 / automount.z / automount
Encoding:
Text File  |  2002-10-03  |  24.9 KB  |  529 lines

  1.  
  2.  
  3.  
  4. AAAAUUUUTTTTOOOOMMMMOOOOUUUUNNNNTTTT((((1111MMMM))))                                                    AAAAUUUUTTTTOOOOMMMMOOOOUUUUNNNNTTTT((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      automount - automatically mount NFS filesystems
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ////uuuussssrrrr////eeeettttcccc////aaaauuuuttttoooommmmoooouuuunnnntttt [ ----mmmmnnnnTTTTvvvv ] [ ----DDDD _n_a_m_e=_v_a_l_u_e ] [ ----ffff _m_a_s_t_e_r-_f_i_l_e ] [ ----pppp
  13.      _p_r_i_o_r_i_t_y ] [ ----MMMM _m_o_u_n_t-_d_i_r_e_c_t_o_r_y ] [ ----ttttllll _d_u_r_a_t_i_o_n ] [ ----ttttmmmm _i_n_t_e_r_v_a_l ] [ ----ttttpppp
  14.      _d_u_r_a_t_i_o_n ] [ ----ttttwwww _i_n_t_e_r_v_a_l ] [ _d_i_r_e_c_t_o_r_y _m_a_p_n_a_m_e [ -_m_o_u_n_t-_o_p_t_i_o_n_s ] ] ...
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      _A_u_t_o_m_o_u_n_t is a daemon that automatically and transparently mounts NFS
  18.      filesystems as needed. Whenever a user on a client machine running
  19.      _a_u_t_o_m_o_u_n_t invokes a command that needs to access a remote file or
  20.      directory, the hierarchy to which that file or directory belongs is
  21.      mounted and remains mounted for as long as it is needed. When a certain
  22.      amount of time has elapsed during which the hierarchy is not accessed, it
  23.      is automatically unmounted.  No mounting of unaccessed remote filesystems
  24.      is done at boot-time, and the user doesn't need special privilege to
  25.      mount a directory.
  26.  
  27.      The _a_u_t_o_m_o_u_n_t daemon is started during system initialization from the
  28.      /_e_t_c/_i_n_i_t._d/_n_e_t_w_o_r_k script if the configuration flags ``nfs'' and
  29.      ``automount'' are set ``on.''  Do the following commands as super-user to
  30.      enable _a_u_t_o_m_o_u_n_t:
  31.  
  32.           /etc/chkconfig nfs on
  33.           /etc/chkconfig automount on
  34.  
  35.      Rebooting will start _a_u_t_o_m_o_u_n_t with the options and arguments contained
  36.      in the file /_e_t_c/_c_o_n_f_i_g/_a_u_t_o_m_o_u_n_t._o_p_t_i_o_n_s.  The default version of this
  37.      file lets you access exported directories on another host with the
  38.      filename prefix of
  39.  
  40.           /hosts/<_h_o_s_t_n_a_m_e>/
  41.  
  42.  
  43.      For example, if host _s_p_r_i_n_g_f_i_e_l_d exports /_u_s_r, then
  44.  
  45.           ls /hosts/springfield/usr
  46.  
  47.      will show the contents of that directory.  You may want to customize this
  48.      file for your site.
  49.  
  50.      Unlike _m_o_u_n_t, _a_u_t_o_m_o_u_n_t does not consult the file /_e_t_c/_f_s_t_a_b for a list
  51.      of hierarchies to mount.  Rather, it consults a series of maps, which can
  52.      be either direct or indirect.  The names of the maps can be passed to
  53.      _a_u_t_o_m_o_u_n_t from the command line (via the /_e_t_c/_c_o_n_f_i_g/_a_u_t_o_m_o_u_n_t._o_p_t_i_o_n_s
  54.      file), or from another (_m_a_s_t_e_r) map.
  55.  
  56.      The master map lists (as if from the command line) all other maps,
  57.      applicable options, and mount points.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. AAAAUUUUTTTTOOOOMMMMOOOOUUUUNNNNTTTT((((1111MMMM))))                                                    AAAAUUUUTTTTOOOOMMMMOOOOUUUUNNNNTTTT((((1111MMMM))))
  71.  
  72.  
  73.  
  74.      An indirect map allows you to specify mappings for the subdirectories you
  75.      wish to mount under the _d_i_r_e_c_t_o_r_y indicated on the command line. In an
  76.      indirect map, each _d_i_r_e_c_t_o_r_y field consists of the basename of a
  77.      subdirectory to be mounted as needed.
  78.  
  79.      A direct map contains mappings for any number of directories.  Each
  80.      directory listed in the map is automatically mounted as needed.  The
  81.      direct map as a whole is not associated with any single directory.
  82.  
  83.      _a_u_t_o_m_o_u_n_t appears to be an NFS server to the kernel.  _a_u_t_o_m_o_u_n_t uses the
  84.      map contained in the _m_a_p_n_a_m_e argument to locate an appropriate NFS file
  85.      server, exported filesystem, and mount options.  It then mounts the
  86.      filesystem in a temporary location, and creates a symbolic link to the
  87.      temporary location.  If the filesystem is not accessed within an
  88.      appropriate interval (five minutes by default), the daemon unmounts the
  89.      filesystem and removes the symbolic link.  If the indicated directory has
  90.      not already been created, the daemon creates it, and then removes it upon
  91.      exiting.
  92.  
  93.      By default, _a_u_t_o_m_o_u_n_t mounts everything under the directory /_t_m_p__m_n_t.
  94.      For instance, if a user wants to mount a remote directory _s_r_c under
  95.      /_u_s_r/_s_r_c, the actual mount point will be /_t_m_p__m_n_t/_u_s_r/_s_r_c, and /_u_s_r/_s_r_c
  96.      will be a symbolic link to that location.
  97.  
  98.      As with any other kind of mount, a mount effected through the automounter
  99.      on a non-empty mount point will hide the original contents of the mount
  100.      point for as long as the mount is in effect.
  101.  
  102.      Since the name-to-location binding is dynamic, updates to an _a_u_t_o_m_o_u_n_t
  103.      map are transparent to the user.  This obviates the need to ``pre-mount''
  104.      shared file systems for applications that have ``hard-coded'' references
  105.      to files.  Nor is there a need to maintain records of which hosts must be
  106.      mounted for what applications.
  107.  
  108.      If the _d_i_r_e_c_t_o_r_y argument is a pathname, the _m_a_p argument points to an
  109.      _i_n_d_i_r_e_c_t map.  An indirect map contains a list of the subdirectories
  110.      contained within the indicated _d_i_r_e_c_t_o_r_y.  With an indirect map, it is
  111.      these subdirectories that are mounted automatically.
  112.  
  113.      If the _d_i_r_e_c_t_o_r_y argument is `/-', _a_u_t_o_m_o_u_n_t treats the _m_a_p argument that
  114.      follows as the name of a _d_i_r_e_c_t map.  In a direct map, each entry
  115.      associates the full pathname of a mount point with a remote filesystem to
  116.      mount.
  117.  
  118.      A map can be a file or a network information service (NIS) map; if a
  119.      file, the _m_a_p argument must be a full pathname.
  120.  
  121.      The -_m_o_u_n_t-_o_p_t_i_o_n_s argument, when supplied, consists of the leading dash
  122.      and a comma-separated list of options to _m_o_u_n_t(1M), as described in
  123.      _f_s_t_a_b(4).  If these options are supplied, they become the default mount
  124.      options for all entries in the map.  Mount options provided within a map
  125.      entry override these defaults.
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. AAAAUUUUTTTTOOOOMMMMOOOOUUUUNNNNTTTT((((1111MMMM))))                                                    AAAAUUUUTTTTOOOOMMMMOOOOUUUUNNNNTTTT((((1111MMMM))))
  137.  
  138.  
  139.  
  140. OOOOPPPPTTTTIIIIOOOONNNNSSSS
  141.      ----DDDD _v_a_r=_v_a_l_u_e
  142.           Assign _v_a_l_u_e to the indicated automount (environment) variable.
  143.  
  144.      ----ffff  _m_a_s_t_e_r-_f_i_l_e
  145.           Read a local file for initialization, before reading the _a_u_t_o._m_a_s_t_e_r
  146.           NIS map.  The information in _m_a_s_t_e_r-_f_i_l_e will take precedence.
  147.  
  148.      ----mmmm   Suppress initialization of _d_i_r_e_c_t_o_r_y-_m_a_p_n_a_m_e pairs listed in the
  149.           _a_u_t_o._m_a_s_t_e_r NIS database.
  150.  
  151.      ----MMMM  _m_o_u_n_t-_d_i_r_e_c_t_o_r_y
  152.           Mount temporary filesystems in the named directory, instead of
  153.           /_t_m_p__m_n_t.
  154.  
  155.      ----nnnn   Disable dynamic mounts.  With this option, references through the
  156.           _a_u_t_o_m_o_u_n_t daemon only succeed when the target filesystem has been
  157.           previously mounted.  This can be used to prevent NFS servers from
  158.           cross-mounting each other.
  159.  
  160.      ----TTTT   Trace.  Expand each NFS call and display it on standard error.
  161.  
  162.      ----pppp  _p_r_i_o_r_i_t_y
  163.           Set the (non-degrading) priority of the automount process.  The
  164.           default is NDPNORMAX (40).
  165.  
  166.      ----ttttllll  _d_u_r_a_t_i_o_n
  167.           Specify a _d_u_r_a_t_i_o_n, in seconds, that a filesystem is to remain
  168.           mounted when not in use.  The default is 300 seconds (5 minutes).
  169.  
  170.      ----ttttmmmm  _i_n_t_e_r_v_a_l
  171.           Specify an _i_n_t_e_r_v_a_l, in seconds, between attempts to mount a
  172.           filesystem.  The default is 30 seconds.
  173.  
  174.      ----ttttpppp  _d_u_r_a_t_i_o_n
  175.           Specify the _d_u_r_a_t_i_o_n, in seconds, that the results of a probe of a
  176.           server's availability will remain cached.  The default is 5 seconds.
  177.  
  178.      ----ttttwwww  _i_n_t_e_r_v_a_l
  179.           Specify an _i_n_t_e_r_v_a_l, in seconds, between attempts to unmount
  180.           filesystems that have exceeded their cached times.  The default is
  181.           60 seconds.
  182.  
  183.      ----vvvv   Verbose.  Log status and/or warning messages through _s_y_s_l_o_g(3B) or
  184.           to the console.
  185.  
  186. EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT
  187.      Environment variables can be used within an automount map.  For instance,
  188.      if $HOME appeared within a map, _a_u_t_o_m_o_u_n_t would expand it to its current
  189.      value for the HOME variable.  Environment variables are expanded only for
  190.      the automounter's environment - not for the environment of a user using
  191.      the automounter's services.
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. AAAAUUUUTTTTOOOOMMMMOOOOUUUUNNNNTTTT((((1111MMMM))))                                                    AAAAUUUUTTTTOOOOMMMMOOOOUUUUNNNNTTTT((((1111MMMM))))
  203.  
  204.  
  205.  
  206.      If a variable reference needs to be protected from affixed characters,
  207.      you can surround the variable name with curly braces.
  208.  
  209. UUUUSSSSAAAAGGGGEEEE
  210.    MMMMaaaapppp EEEEnnnnttttrrrryyyy FFFFoooorrrrmmmmaaaatttt
  211.      A simple map entry (mapping) takes the form:
  212.  
  213.           _d_i_r_e_c_t_o_r_y [ ----_m_o_u_n_t-_o_p_t_i_o_n_s ] _l_o_c_a_t_i_o_n ...
  214.  
  215.      where _d_i_r_e_c_t_o_r_y is the full pathname of the directory to mount when used
  216.      in a direct map, or the basename of a subdirectory in an indirect map.
  217.      _m_o_u_n_t-_o_p_t_i_o_n_s is a comma-separated list of options to _m_o_u_n_t(1M), as
  218.      described in _f_s_t_a_b(4), and _l_o_c_a_t_i_o_n specifies a remote filesystem from
  219.      which the directory may be mounted.  In the simple case, _l_o_c_a_t_i_o_n takes
  220.      the form:
  221.  
  222.           _h_o_s_t_n_a_m_e:_p_a_t_h_n_a_m_e
  223.  
  224.    _R_e_p_l_i_c_a_t_e_d _F_i_l_e_s_y_s_t_e_m_s
  225.      Multiple _l_o_c_a_t_i_o_n fields can be specified for replicated read-only
  226.      filesystems, in which case _a_u_t_o_m_o_u_n_t sends multiple mount requests;
  227.      _a_u_t_o_m_o_u_n_t mounts the filesystem from the first host that replies to the
  228.      mount request.  This request is first made to the local net or subnet.
  229.      If there is no response, any connected server may respond.  Since
  230.      _a_u_t_o_m_o_u_n_t does not monitor the status of the server while the filesystem
  231.      is mounted, it will not use another location in the list if the currently
  232.      mounted server crashes.  This support for replicated filesystems is
  233.      available only at mount time.  Once unmounted, another location may be
  234.      used for subsequent mounts of the filesystem.
  235.  
  236.      If each _l_o_c_a_t_i_o_n in the list shares the same _p_a_t_h_n_a_m_e then a single
  237.      _l_o_c_a_t_i_o_n may be used with a comma-separated list of hostnames:
  238.  
  239.           _h_o_s_t_n_a_m_e_1,_h_o_s_t_n_a_m_e_2:_p_a_t_h_n_a_m_e
  240.  
  241.    _S_h_a_r_i_n_g _M_o_u_n_t_s
  242.      If _l_o_c_a_t_i_o_n is specified in the form:
  243.  
  244.           _h_o_s_t_n_a_m_e:_p_a_t_h_n_a_m_e:_s_u_b_d_i_r
  245.  
  246.      _h_o_s_t_n_a_m_e is the name of the server from which to mount the filesystem,
  247.      _p_a_t_h_n_a_m_e is the pathname of the directory to mount, and _s_u_b_d_i_r, when
  248.      supplied, is the name of a subdirectory to which the symbolic link is
  249.      made.  This can be used to prevent duplicate mounts when multiple
  250.      directories in the same remote filesystem may be accessed.  With an
  251.      indirect map for /_h_o_m_e such as:
  252.  
  253.           bart      springfield:/home/simpsons:bart
  254.           maggie         springfield:/home/simpsons:maggie
  255.  
  256.      and a user attempting to access a file in /_h_o_m_e/_b_a_r_t, _a_u_t_o_m_o_u_n_t mounts
  257.      _s_p_r_i_n_g_f_i_e_l_d:/_h_o_m_e/_s_i_m_p_s_o_n_s, but creates a symbolic link called /_h_o_m_e/_b_a_r_t
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. AAAAUUUUTTTTOOOOMMMMOOOOUUUUNNNNTTTT((((1111MMMM))))                                                    AAAAUUUUTTTTOOOOMMMMOOOOUUUUNNNNTTTT((((1111MMMM))))
  269.  
  270.  
  271.  
  272.      to the _b_a_r_t subdirectory in the temporarily-mounted filesystem.  If a
  273.      user immediately tries to access a file in /_h_o_m_e/_m_a_g_g_i_e, _a_u_t_o_m_o_u_n_t needs
  274.      only to create a symbolic link that points to the _m_a_g_g_i_e subdirectory;
  275.      /_h_o_m_e/_s_i_m_p_s_o_n_s is already mounted.
  276.  
  277.      With the following map:
  278.  
  279.           bart           springfield:/home/simpsons/bart
  280.           maggie         springfield:/home/simpsons/maggie
  281.  
  282.  
  283.      _a_u_t_o_m_o_u_n_t would have to mount the filesystem twice.
  284.  
  285.    _C_o_m_m_e_n_t_s _a_n_d _Q_u_o_t_i_n_g
  286.      A mapping can be continued across input lines by escaping the NEWLINE
  287.      with a backslash.  Comments begin with a # and end at the subsequent
  288.      NEWLINE.
  289.  
  290.      Characters that have special significance to the automount map parser may
  291.      be protected either with double quotes (") or by escaping with a
  292.      backslash (\).  Pathnames with embedded whitespace, colons (:) or dollars
  293.      ($) should be protected.
  294.  
  295.    _D_i_r_e_c_t_o_r_y _P_a_t_t_e_r_n _M_a_t_c_h_i_n_g
  296.      The `&' character is expanded to the value of the _d_i_r_e_c_t_o_r_y field for the
  297.      entry in which it occurs.  In this case:
  298.  
  299.           bart springfield:/home/simpsons:&
  300.  
  301.      the & expands to _b_a_r_t.  The `*' character, when supplied as the _d_i_r_e_c_t_o_r_y
  302.      field, is recognized as the catch-all entry.  Such an entry will be used
  303.      if any previous entry has not successfully matched the key being searched
  304.      for.  For instance, if the following entry appeared in the indirect map
  305.      for /_h_o_m_e:
  306.  
  307.           *    &:/home/&
  308.  
  309.      this would allow automatic mounts in /_h_o_m_e of any remote filesystem whose
  310.      location could be specified as:
  311.  
  312.           _h_o_s_t_n_a_m_e:/_h_o_m_e/_h_o_s_t_n_a_m_e
  313.  
  314.    _M_u_l_t_i_p_l_e _M_o_u_n_t_s
  315.      A multiple mount entry takes the form:
  316.  
  317.           _d_i_r_e_c_t_o_r_y [ /[ _s_u_b_d_i_r_e_c_t_o_r_y [ ----_m_o_u_n_t-_o_p_t_i_o_n_s ] _l_o_c_a_t_i_o_n ... ] ...
  318.  
  319.      The initial / preceding the _s_u_b_d_i_r_e_c_t_o_r_y is required; the optional
  320.      _s_u_b_d_i_r_e_c_t_o_r_y is taken as a pathname relative to the _d_i_r_e_c_t_o_r_y.  If
  321.      _s_u_b_d_i_r_e_c_t_o_r_y is omitted in the first occurrence, the / refers to the
  322.      directory itself.
  323.  
  324.  
  325.  
  326.  
  327.                                                                         PPPPaaaaggggeeee 5555
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334. AAAAUUUUTTTTOOOOMMMMOOOOUUUUNNNNTTTT((((1111MMMM))))                                                    AAAAUUUUTTTTOOOOMMMMOOOOUUUUNNNNTTTT((((1111MMMM))))
  335.  
  336.  
  337.  
  338.      Given the direct map entry:
  339.  
  340.           /tools \
  341.              /         -ro  dill:/tools          mint:/tools \
  342.              /1.0      -ro  mint:/tools/1.0      dill:/tools/1.0 \
  343.              /1.0/man  -ro  dill:/tools/1.0/man  mint:/tools/1.0/man
  344.  
  345.      _a_u_t_o_m_o_u_n_t would automatically mount /_t_o_o_l_s, /_t_o_o_l_s/_1._0 and
  346.      /_t_o_o_l_s/_1._0/_m_a_n, as needed, from either _d_i_l_l or _m_i_n_t, whichever host
  347.      responded first.  If the mounts are hierarchically related, mounts closer
  348.      to the root must appear before submounts.  All the mounts of a multiple
  349.      mount entry will occur together and will be unmounted together.  This is
  350.      important if the filesystems reference each other with relative symbolic
  351.      links.  Multiple mount entries can be used both in direct maps and in
  352.      indirect maps.
  353.  
  354.    IIIInnnncccclllluuuuddddeeeedddd MMMMaaaappppssss
  355.      The contents of another map can be included within a map with an entry of
  356.      the form:
  357.  
  358.           +_m_a_p_n_a_m_e
  359.  
  360.      _m_a_p_n_a_m_e can either be a filename, or the name of an NIS map, or one of
  361.      the special maps described below.  If the directory being searched for is
  362.      not located in an included map, the search continues with the next entry.
  363.  
  364.    SSSSppppeeeecccciiiiaaaallll MMMMaaaappppssss
  365.      There are two special maps currently available:  -_h_o_s_t_s and -_n_u_l_l.  The
  366.      -_h_o_s_t_s map uses the NIS _h_o_s_t_s._b_y_n_a_m_e map to locate a remote host when the
  367.      hostname is specified.  This map specifies mounts of all exported
  368.      filesystems from any host.  For instance, if the following _a_u_t_o_m_o_u_n_t
  369.      command is already in effect:
  370.  
  371.           automount  /hosts  -hosts
  372.  
  373.      then a reference to /_h_o_s_t_s/_s_p_r_i_n_g_f_i_e_l_d/_u_s_r would initiate an automatic
  374.      mount of all filesystems from _s_p_r_i_n_g_f_i_e_l_d that _a_u_t_o_m_o_u_n_t can mount;
  375.      references to a directory under /_h_o_s_t_s/_s_p_r_i_n_g_f_i_e_l_d will refer to the
  376.      corresponding directory relative to _s_p_r_i_n_g_f_i_e_l_d's root.
  377.  
  378.      The -_n_u_l_l map, when indicated on the command line, cancels any subsequent
  379.      map for the directory indicated.  It can be used to cancel a map given in
  380.      _a_u_t_o._m_a_s_t_e_r or for a mount point specified as an entry in a direct map.
  381.  
  382.    CCCCoooonnnnffffiiiigggguuuurrrraaaattttiiiioooonnnn aaaannnndddd tttthhhheeee aaaauuuuttttoooo....mmmmaaaasssstttteeeerrrr MMMMaaaapppp
  383.      _a_u_t_o_m_o_u_n_t normally consults the _a_u_t_o._m_a_s_t_e_r NIS configuration map for a
  384.      list of initial automount maps, and sets up automatic mounts for them in
  385.      addition to those given on the command line.  If there are duplications,
  386.      the command-line arguments take precedence over a local ----ffff master map and
  387.      they both take precedence over an NIS _a_u_t_o._m_a_s_t_e_r map.  This
  388.      configuration database contains arguments to the automount command,
  389.      rather than mappings; unless ----ffff is in effect, _a_u_t_o_m_o_u_n_t does _n_o_t look for
  390.  
  391.  
  392.  
  393.                                                                         PPPPaaaaggggeeee 6666
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400. AAAAUUUUTTTTOOOOMMMMOOOOUUUUNNNNTTTT((((1111MMMM))))                                                    AAAAUUUUTTTTOOOOMMMMOOOOUUUUNNNNTTTT((((1111MMMM))))
  401.  
  402.  
  403.  
  404.      an _a_u_t_o._m_a_s_t_e_r file on the local host.
  405.  
  406.      Maps given on the command line, or those given in a local _a_u_t_o._m_a_s_t_e_r
  407.      file specified with ----ffff override those in the NIS _a_u_t_o._m_a_s_t_e_r map.  For
  408.      instance, given the command:
  409.  
  410.           automount -f /etc/auto.master /home -null /- /etc/auto.direct
  411.  
  412.      and a file named /_e_t_c/_a_u_t_o._m_a_s_t_e_r that contains:
  413.  
  414.           /homes  auto.home
  415.  
  416.      _a_u_t_o_m_o_u_n_t would mount home directories under /_h_o_m_e_s instead of /_h_o_m_e, in
  417.      addition to the various directories specified in the /_e_t_c/_a_u_t_o._d_i_r_e_c_t
  418.      file.
  419.  
  420. FFFFIIIILLLLEEEESSSS
  421.      /tmp_mnt
  422.           directory under which filesystems are dynamically mounted
  423.  
  424.      /etc/config/automount.options
  425.           site-dependent options and arguments
  426.  
  427. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  428.      mount(1M), network(1M), chkconfig(1M), fstab(4), exports(4), schedctl(2)
  429.  
  430. NNNNOOOOTTTTEEEESSSS
  431.      The -_h_o_s_t_s map mounts all of the exported filesystems, for which the
  432.      client has access, from a server. Use of the _n_o_h_i_d_e export option on the
  433.      server (see exports(4)) may be used to minimize the number of mounts
  434.      performed by clients. Automount will not request a separate mount for a
  435.      _n_o_h_i_d_e filesystem, if the client has access via the parent filesystem.
  436.      If frequent access to just a single filesystem is required, it is more
  437.      efficient to access the filesystem with a map entry that is tailored to
  438.      mount just the filesystem of interest.
  439.  
  440.      When it receives signal number 1, SIGHUP, _a_u_t_o_m_o_u_n_t rereads the /_e_t_c/_m_t_a_b
  441.      file to update its internal record of currently-mounted filesystems.  If
  442.      a filesystem mounted with _a_u_t_o_m_o_u_n_t is unmounted with the _u_m_o_u_n_t(1M)
  443.      command, _a_u_t_o_m_o_u_n_t should be forced to reread the file by using the
  444.      command
  445.  
  446.           /etc/killall -HUP automount
  447.  
  448.      An _l_s(1) listing of the entries in the directory for an indirect map
  449.      shows only the symbolic links for currently mounted filesystems.  This
  450.      restriction is intended to avoid unnecessary mounts as a side effect of
  451.      programs that read the directory and _s_t_a_t(2) each of the names.
  452.  
  453.      Mount points for a single automounter must not be hierarchically related.
  454.      _a_u_t_o_m_o_u_n_t will not allow an automount mount point to be created within an
  455.      automounted filesystem.
  456.  
  457.  
  458.  
  459.                                                                         PPPPaaaaggggeeee 7777
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466. AAAAUUUUTTTTOOOOMMMMOOOOUUUUNNNNTTTT((((1111MMMM))))                                                    AAAAUUUUTTTTOOOOMMMMOOOOUUUUNNNNTTTT((((1111MMMM))))
  467.  
  468.  
  469.  
  470.      The recommended way to terminate automount services is to send a SIGTERM
  471.      signal to the daemon:
  472.  
  473.           /etc/killall -TERM automount
  474.  
  475.      This allows the automounter to catch the signal and unmount not only its
  476.      daemon but also any mounts in /_t_m_p__m_n_t.  Mounts in /_t_m_p__m_n_t that are busy
  477.      will not be unmounted.  _a_u_t_o_m_o_u_n_t must not be terminated with the SIGKILL
  478.      signal.  Without an opportunity to unmount itself, the automount mount
  479.      points will appear to the kernel to belong to a non-responding NFS
  480.      server.
  481.  
  482.      Since each direct map entry results in a separate mount for the mount
  483.      daemon, such maps should be kept short.  Although both direct and
  484.      indirect maps can be modified at any time, entries added to a direct map
  485.      will have no effect until the automounter is restarted.
  486.  
  487.      Automount mount points are mounted with type _i_g_n_o_r_e; they do not appear
  488.      in the output of either _m_o_u_n_t(1M) or _d_f(1).  Automatically-mounted
  489.      filesystems, on the other hand, are mounted with type _n_f_s and are
  490.      reported along with other NFS-mounted filesystems.
  491.  
  492. BBBBUUUUGGGGSSSS
  493.      Shell filename expansion does not apply to objects not currently mounted.
  494.  
  495.      The _b_g mount option is not recognized by the automounter.
  496.  
  497.      Since _a_u_t_o_m_o_u_n_t is single-threaded, any request that is delayed by a slow
  498.      or non-responding NFS server will delay all subsequent automatic mount
  499.      requests until it completes.
  500.  
  501.      Programs that read /_e_t_c/_m_t_a_b and then touch files that reside under
  502.      automatic mount points will introduce further entries to the file.
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.                                                                         PPPPaaaaggggeeee 8888
  526.  
  527.  
  528.  
  529.